/*
* @Author: xfy
* @Date:   2017-08-28 14:25:39
* @Last Modified by:   xfy
* @Last Modified time: 2017-09-04 12:24:01
*/
'use strict';
require('./index.css');
require('page/common/nav-simple/index.js');
var _supper = require('util/supper.js');

$(function(){
    var type        = _supper.getUrlParam('type') || 'default',
        go          = _supper.getUrlParam('go'),
        $element    = $('.' + type + '-success');
    if(type === 'payment'){
        var orderNumber     = _supper.getUrlParam('orderNumber'),
            $orderNumber    = $element.find('.order-number');
        $orderNumber.attr('href', $orderNumber.attr('href') + orderNumber);
    }
    //显示对应的提示元素
    $element.show();
    if(go){
        setInterval("window.location.href = './"+ go +".html'",2000);
    }
});